<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/select-ui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/editor/kindeditor.js"></script>

<script type="text/javascript">
    KE.show({
        id : 'content7',
        cssPath : './index.css'
    });
  </script>
  
<script type="text/javascript">
$(document).ready(function(e){
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});

</script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
 	 $(".tip").fadeIn(200);
  });
  
  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	  $(".butongguo").fadeOut(100);
  });
});
</script>
<style type="text/css">
	label{
		font-size:13;
	}
</style>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><e>首页</e></li>
    <li><e>内容管理</e></li>
    <li><e>提现审核</e></li>
    <li><e>查看详情</e></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected" style="font-size:15">提现审核详情</a></li> 
    
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    <c:forEach items="${lists}" var="data">
    <ul class="forminfo">
    <li><label>姓名</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.username}" style="font-size:13"/></li>
    <li><label>手机号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.mobile}" style="font-size:13"/></li>
    <li><label>真实姓名</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.real_name}" style="font-size:13"/></li>
    <li><label>提现金额</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.money}" style="font-size:13"/>
    	<input type="hidden" value="${data.id}"/>
    </li>
    <li><label>提现类型</label>
    	<c:if test="${data.type == 1}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="银行卡提现"/></c:if>
		<c:if test="${data.type == 2}"><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="支付宝提现"/></c:if>
    </li>
    <li><label>提现账号</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.bank_card}" style="font-size:13"/></li>
    <li><label>提交时间</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.create_time}" style="font-size:13"/></li>
    <li><label>提现状态</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.state}" style="font-size:13"/></li>
    <li><label>提现状态</label><input name="background" type="text" class="dfinput"  readonly ="readonly" value="${data.name}" style="font-size:13"/></li>
   	<c:if test="${data.state == '待审核'}">
   		<div style="margin-left:110px;" class="tipbtn">
			<input name="tongguo" type="button"  class="sure" value="审核通过"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input name="butongguo" type="button" class="sure" value="审核不通过" />
		</div>
   	</c:if>
	<c:if test="${data.state == '审核通过' || data.state == '审核不通过'}">
		<li><label>审核时间</label><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="${data.update_time}"/>
		</li>
	</c:if>
	<c:if test="${data.state == '提现完成'}">
		<li><label>到账时间</label><input name="jobYears" type="text" class="dfinput" readonly ="readonly" value="${data.update_time}"/>
		</li>
	</c:if>
    </ul>
    </c:forEach>
    <input style="margin-left:200px;margin-top:20px;" name="fanhui"type="button"  class="sure" value="返回"/>
    </div> 
  </div>
  	<script type="text/javascript">
	  	$(function(){
	  		 $("input[name=fanhui]").click(function(){
	  			window.location.href="/htx-backer/selectWithdrawList";
	  		 })
	  		
			 $("input[name=tongguo]").click(function(){
				 var id = $("input[type=hidden]").val();
				 var flag = confirm("是否确认通过？")
				 if(flag){
					 window.location.href="/htx-backer/updateWithdrawStatus?idd=" + id + "&states=审核通过&userid="+${data.user_id}+"&username="+${data.username}+"&money="+${data.money};
				 }
			 });
			 
			 $("input[name=butongguo]").click(function(){
				 var id = $("input[type=hidden]").val();
				 var flag = confirm("是否确认不通过？")
				 if(flag){
					 window.location.href="/htx-backer/updateWithdrawStatus?idd=" + id + "&states=审核不通过&userid="+${data.user_id}+"&username="+${data.username}+"&money="+${data.money};
				 }
			 });
		})		
    </script>
</body>
</html>
